package gov.army.baseworkshop.service
{
	import gov.army.baseworkshop.model.News;
	import gov.army.baseworkshop.model.Picture;
	import gov.army.baseworkshop.report.SampleData;
	
	import mx.collections.ArrayList;
	import mx.rpc.remoting.RemoteObject;
	
	public class TestService 
	{
		public static function getReportData(num:int):ArrayList{
			var objList1:ArrayList=new ArrayList();
			for (var i:int;i < num;i++){
				var s1:SampleData  = new SampleData();
				s1.unit="Test Unit";
				s1.nomenclature="THGFFF";
				objList1.addItem(s1);
			}
			return objList1;
		}
		
		public static function getNews():ArrayList{
			var objList:ArrayList=new ArrayList();
			var news:News  = new News();
			news.id=1;
			news.heading="Luxury Building Blocks Strauss-Kahn for House Arrest";
			news.detail="Dominique Strauss-Kahn, the former managing director of the International Monetary Fund, must find another place to stay when he leaves his Rikers Island jail cell because the Upper East Side building where his wife had rented an ...";
			objList.addItem(news);
			
			news = new News();
			news.id=2;
			news.heading="Syrian troops fire on protesters; at least 23 dead";
			news.detail="View Photo Gallery - Tens of thousands of people are taking part in the uprising against Bashar al-Assad's regime. By Liz Sly, BEIRUT - Syrian troops opened fire on protesters demonstrating after prayers on Friday, killing at least 23, as President ";
			objList.addItem(news);
			
			news= new News();
			news.id=3;
			news.heading="U.S.-Israel Tensions High as Obama Meets With Netanyahu";
			news.detail="President Obama and Israeli Prime Minister Benjamin Netanyahu meet in Washington today amid chilly relations between the two countries that, many observers believe, were exacerbated Thursday by Obama's ...";
			objList.addItem(news);
			
			news = new News();
			news.id=4;
			news.heading="'Pirates Of The Caribbean: On Stranger Tides': The Reviews Are In!";
			news.detail="To truly understand the global success of the 'Pirates of the Caribbean' franchise - because who, honestly, can wrap his head around a figure as large as $2.7 billion, the series' worldwide box-office haul?";
			objList.addItem(news);
			
			news = new News();
			news.id=5;
			news.heading="NATO airstrikes cap week of rising pressure on Libya";
			news.detail="NATO destroyed eight Libyan warships Friday in a week that saw a push for ICC arrest warrants for Qaddafi and a tough speech from Obama supporting the rebellion.";
			objList.addItem(news);
			
			news  = new News();
			news.id=6;
			news.heading="Tepco president resigns over Japan nuclear crisis";
			news.detail="The president of the Japanese utility that runs a tsunami-devastated nuclear plant resigned in disgrace on Friday after reporting the biggest financial losses in company history, saying he was stepping down to take responsibility for the ongoing crisis ...";
			objList.addItem(news);
			
			news = new News();
			news.id=7;
			news.heading="Bihar to introduce high-security number plates and licence system";
			news.detail="PATNA: In the wake of the apex court's guidelines, Nitish Kumar government has decided to introduce high-security number plates and licence system in Bihar soon, state Transport Minister Brishen Patel said. ";
			objList.addItem(news);
			
			news = new News();
			news.id=8;
			news.heading="California's lackluster recovery continues as unemployment rate dips below 12%";
			news.detail="California adds 8,900 jobs in April and unemployment rate falls to 11.9%, the first time joblessness is under 12% since August 2009. But national job creation continues to outshine the state's performance.";
			objList.addItem(news);
			return objList;
		}
		
		
		public static function getPictures():ArrayList{
			var objList:ArrayList=new ArrayList();
			for (var i:int;i < 2;i++){
				var p:Picture  = new Picture();
				p.imageName="Image 1 "+i;
				p.imageDescription=" Image description here 1 "+i; 
				p.imagePath="images/Jellyfish.jpg"; 
				objList.addItem(p);
				
				p = new Picture();
				p.imageName="Image 2 "+i;
				p.imageDescription=" Image description here 2 "+i; 
				p.imagePath="images/Koala.jpg"; 
				objList.addItem(p);
				
				p= new Picture();
				p.imageName="Image 3 "+i;
				p.imageDescription=" Image description here 3 "+i; 
				p.imagePath="images/Jellyfish.jpg"; 
				objList.addItem(p);
				
				p= new Picture();
				p.imageName="Image 4 "+i;
				p.imageDescription=" Image description here 4 "+i; 
				p.imagePath="images/Tulips.jpg"; 
				objList.addItem(p);
			}
			return objList;
		}
		
		
		public function TestService()
		{
			
		}
	}
}